package com.xnyzc.lhy.mis.service.activity;

import com.xnyzc.lhy.mis.entity.activity.OaSysActivityRewardRule;
import com.baomidou.mybatisplus.extension.service.IService;
import com.xnyzc.lhy.mis.entity.param.activity.ActivityRewardRuleCreateParam;
import com.xnyzc.lhy.mis.entity.result.activity.ActivityInfoRewardRuleResult;

import java.util.Date;
import java.util.List;

/**
 * <p>
 * 奖励方式 服务类
 * </p>
 *
 * @author haoyfa
 * @since 2019-12-16
 */
public interface IOaSysActivityRewardRuleService extends IService<OaSysActivityRewardRule> {

    /**
     * 创建活动规则记录
     * @param defId
     * @param activityRewardRuleList
     */
    void createActivityRewardRule(Long defId, Date createDate, List<ActivityRewardRuleCreateParam> activityRewardRuleList);

    /**
     * 根据活动定义id查询活动奖励方式
     * @param defId
     * @return
     */
    List<OaSysActivityRewardRule> queryActivityRewardRuleList(Long defId);

    /**
     * 根据活动定义id查询活动奖励方式result
     * @param defId
     * @return
     */
    public List<ActivityInfoRewardRuleResult> queryActivityRewardRuleResultList(Long defId);
}
